CVGREYC_PATH = ../../python-cvgreyc
#CVGREYC_PATH = $(HOME)/Develop/python-cvgreyc
SOURCE = RPTree.cpp RPLeaf.cpp RPWrapper.cpp
OBJECTS = RPTree.o RPLeaf.o RPWrapper.o
CFLAGS = -Wall -ansi -pedantic -shared -fPIC -g -I$(CVGREYC_PATH)/include
LIB = librptree.so

all : $(OBJECTS) $(LIB) tests

librptree.so : $(OBJECTS)
	g++ $^ -o $@ $(CFLAGS)

clean :
	rm *.o
	rm librptree.so
	make -C tests $@

tests : $(OBJECTS)
	make -C tests

%.o : %.cpp %.h
	g++ -c $< -o $@ $(CFLAGS)

	
